//
//  NSString+extension.h
//  Usan
//
//  Created by gongxiang on 12/5/18.
//  Copyright © 2018 gongxiang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (extension)
// 获取当前的版本号
+(NSString *)appVersion;
//替换*****
-(NSString *)replaceWithStartType;
+(NSString *)orderStatus:(NSString *)status;
+(NSMutableAttributedString *)attrStrFrom:(NSString *)allString colorStr:(NSString *)colorStr color:(UIColor *)color font:(CGFloat )font;

+(NSString *)BaseSystem16ToBaseSystem10:(NSString *)str;
+(NSString *)BaseSystem10ToBaseSystem16:(NSString *)str;

/**
 十进制转二进制

 @return 二进制字符串
 */
+ (NSMutableArray *)toBinarySystemWithDecimalSystem:(NSInteger)num length:(int)length;

//时间格式的字符串转date
+(NSDate *)strTurnDate:(NSString *)time format:(NSString *)format;
//date转字符串
+(NSString *)dateTurnStr:(NSDate *)date format:(NSString *)format;

- (NSData*)ad_hexStringToData ;
@end

NS_ASSUME_NONNULL_END
